import request from '@/utils/request'

// 查询手术计划列表
export function listSurgeryplan(query) {
  return request({
    url: '/manage/surgeryplan/list',
    method: 'get',
    params: query
  })
}

// 查询手术计划详细
export function getSurgeryplan(surgeryId) {
  return request({
    url: '/manage/surgeryplan/' + surgeryId,
    method: 'get'
  })
}

// 新增手术计划
export function addSurgeryplan(data) {
  return request({
    url: '/manage/surgeryplan',
    method: 'post',
    data: data
  })
}

// 修改手术计划
export function updateSurgeryplan(data) {
  return request({
    url: '/manage/surgeryplan',
    method: 'put',
    data: data
  })
}

// 删除手术计划
export function delSurgeryplan(surgeryId) {
  return request({
    url: '/manage/surgeryplan/' + surgeryId,
    method: 'delete'
  })
}

// 开始手术
export function startSurgery(data) {
  return request({
    url: '/manage/surgeryplan/start',
    method: 'get',
    params:data
  })
}

// 手术出室
export function managesurgeryplanout(data) {
  return request({
    url: '/manage/surgeryplan/out',
    method: 'post',
    data: data
  })
}




